import https from '@/plugins/luch-request_0.0.7/request'

// 攻略 ---------------------------------------------------
// 攻略分类
export const getClass = data => {
	return https.get('/apihkds/api/zxgl/select_list', data)
}

// 内容中心攻略分类
export const getAllClass = data => {
	return https.get('/apihkds/api/zxgl/content_select_list', data)
}

// 攻略管理列表总数
export const getListTotal = data => {
	return https.get('/apihkds/api/zxgl/total', data)
}

// 攻略上架列表
export const getOnList = data => {
	return https.get('/apihkds/api/zxgl/put_on_list', data)
}

// 攻略下架列表
export const getOffList = data => {
	return https.get('/apihkds/api/zxgl/put_off_list', data)
}

// 攻略公共库列表
export const getPubliclist = data => {
	return https.get('/apihkds/api/zxgl/publiclist', data)
}

// 攻略公共库上架
export const publicPutOn = data => {
	return https.post('/apihkds/api/zxgl/add', data)
}

// 攻略上架
export const putOn = data => {
	return https.post('/apihkds/api/zxgl/put_on', data)
}

// 攻略下架
export const putOff = data => {
	return https.post('/apihkds/api/zxgl/put_off', data)
}

// 攻略置顶
export const setTop = data => {
	return https.post('/apihkds/api/zxgl/set_top', data)
}

// 攻略删除
export const listDel = data => {
	return https.post('/apihkds/api/zxgl/delete', data)
}

export const getProcessList = data => https.get('/apihkds/api/technology/classlist', data)

export const getTechogyList = data => https.get('/apihkds/api/technology/classlist', data)

export const getArticleType = data => https.get('/apihkds/api/zxgl/getschedule', data)

export const getArticleList = data => https.get('/apihkds/api/zxgl/getlist', data)
